﻿@using KhoaLuan.Resources
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>@ViewBag.Title</title>
    <title>Shopping Cart</title>

    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    <script src="~/Scripts/ckeditor/ckeditor.js"></script>
    <script src="~/Scripts/ckfinder/ckfinder.js"></script>
    <script src="~/jquery-ui/jquery-1.9.1.min.js"></script>
    <script src="~/jquery-ui/jssor.core.js"></script>
    <script src="~/jquery-ui/jssor.slider.js"></script>
    <script src="~/jquery-ui/jssor.utils.js"></script>
    <script src="~/jquery-ui/slide.js"></script>
</head>
<body>
    <div class="container">
        
        <div class="navbar navbar-inverse" id="navbar">
            <div class="container">
                <div class="navbar-header">
                    <button class="navbar-toggle" data-toggle="collapse" data-target="#navbar-top">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                </div>
                <nav class="collapse navbar-collapse" style="height:auto;" id="navbar-top">
                    <ul class="nav navbar-nav">
                        <li>
                            
                            <a href=""><img src="~/images/1.png" />&nbsp; &nbsp;@Common.TuvanTPHCM: 0987456321</a>
                        </li>
                        <li>

                            <a href=""><img src="~/images/1.png" />&nbsp; &nbsp;@Common.TuvanHanoi:0123456789</a>
                        </li>
                        <li>

                            <a href=""><img src="~/images/1.png" />&nbsp; &nbsp;@Common.DangkyNhantin</a>
                        </li>
                    </ul>
                    <ul class="nav navbar-nav navbar-right">
                        <li><a href="#" data-lang="en">
                                <img src="~/images/icons/eng.gif" />&nbsp;
                            English</a></li>
                        <li><a href="#" data-lang="vi">
                                <img src="~/images/icons/vit.gif" />&nbsp;
                            Tiếng Việt</a></li>
                        <li>
                            <div class="btn-group">
                                <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                                    <i class="fa fa-map-marker"></i>@Common.TaiKhoan <span class="caret"></span>
                                </button>
                                <ul class="dropdown-menu">
                                    @if (!Request.IsAuthenticated)
                                    {
                                        <li><a href="/Account/Login">@Common.DangNhap</a></li>
                                        <li><a href="/Account/Forgot">@Common.QuenMatKhau</a></li>
                                        <li><a href="/Account/Register">@Common.DangKyThanhVien</a></li>
                                    }
                                    else
                                    {
                                        <li><a href="/Account/LogOff">@Common.Đangxuat</a></li>
                                        <li><a href="/Account/Manage">@Common.DoiMatKhau</a></li>
                                        <li><a href="/Account/Edit">@Common.CapNhapHoSo</a></li>
                                        <li class="divider"></li>
                                        <li><a href="/Order/OrderList">@Common.DonHang</a></li>
                                        <li><a href="/Product/MyProducts">@Common.HangDaMua</a></li>
                                    }
                                </ul>
                            </div>
                        </li>

                    </ul>
                </nav>
            </div>
        </div>

        <header class="nn-header row">
            <div class="row">
                <div class="col-md-4">

                    <img style=" width: 228px; margin-top: 3px; margin-left: 20px;" src="~/images/logo/logo.jpg" />
                   
                </div>
                <div class="col-md-5">
                    <form action="/Product/Search" method="post" style="margin-top:30px;">
                        @Html.TextBox("keyword", null,
                                  new { @class = "form-control", placeholder = Common.TimKiemTheoDanhMuc })
                    </form>
                    <div class="header__brands nav">
                        <ul class="nav nav-pills">
                            <li role="presentation"><a href="/Product/ListBySpecial/BAN_CHAY">
                                @Common.KhuyenMaiDacBiet &nbsp;
                                <img src="~/images/anifire.gif" />

                            </a></li>
                            <li role="presentation"><a href="/Product/ListBySpecial/GIAM_GIA">@Common.topsale &nbsp; <img src="~/images/Flame-rev.gif" /></a></li>
                            <li role="presentation"><a href="/Product/ListBySpecial/XEM_NHIEU">@Common.HangDacBiet &nbsp; <img src="~/images/anifire.gif" /></a></li>
                           
                        </ul>
                    </div>
                </div>
                <div class="col-md-3">
                    <div class="lienhe" style="margin-top:10px;">
                        <img style="float: left;margin-right: 6px;margin-top: 20px;width:55px;" src="~/images/head_phone.png" />
                        <p style="float: left; text-align: right; margin-top: 20px;">
                            <span style="font-weight: bold;font-size: 25px;">1900.6049</span>
                            <br>
                            <span style="font-size: 17px;">Từ 8h00 - 22h00</span>
                        </p>
                    </div>
                </div>
            </div>
        </header>
		
        <div class="navbar navbar-inverse row" id="navbar-menu-main" style="height:50px;">
            <div class="col-md-8">
               @Html.Action("MainMenu", "Menu")

            </div>

            <!--Cart Info-->
            <div class="col-md-4" style=" height: 44px; margin-top:4px; float: right; width: 300px; ">
                @Html.Partial("_CarInfo")
            </div>
            <!--/Cart Info-->

        </div> 
		
		
        <div class="nn-sheet row">          
               
                    @RenderBody()
                
           
        </div>
        <footer class="row" style="background-color: #FFFAED; margin-top: 30px; ">
            @Html.Partial("_Footer")
        </footer>
    </div>
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")
    @RenderSection("scripts", required: false)
    <script>
        $(function () {
            $("a[data-lang]").click(function () {
                expiry = new Date();
                expiry.setDate(expiry.getDate() + 30);

                lang = $(this).attr("data-lang");
                document.cookie = "lang=" + lang
                    + ";expires=" + expiry.toGMTString() + ";path=/";

                // Tải lại để gửi cookie lên server
                location.reload();
            });
        });
    </script>
</body>
</html>